import java.io.FileInputStream;
import java.io.IOException;

public class day_05_IO_3 {
    public static void main(String[] args) throws IOException {
        // 创建对象
        FileInputStream fileInputStream = new FileInputStream("2.txt");

        // 循环读取数据
        int b;
        while ((b = fileInputStream.read()) != -1) {
            System.out.print((char) b);
        }

        fileInputStream.close();
    }
}
